package com.spt.springbootzhsx.service.suggest.Get_Result_7;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

public class Result_old_Mapper extends Mapper<LongWritable, Text, ResultBean, Text> {
    @Override
    protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {
        String[] line = value.toString().split("\t");

        context.write(new ResultBean(line[0], line[1], 1), value);
    }
}
